package com.ys.erp.entity.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ys.erp.entity.service.IToShopOrderService;
import jakarta.validation.constraints.NotBlank;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ys.erp.entity.mapper.ToShopOrderMapper;
import com.ys.erp.entity.data.bean.ToShopOrder;
/**
 * @author lwj
 * @date 2025/5/19
 */
    
@Service
public class IToShopOrderServiceImpl extends ServiceImpl<ToShopOrderMapper, ToShopOrder> implements IToShopOrderService {

    @Override
    public ToShopOrder getByNo(@NotBlank String orderNo) {
        QueryWrapper<ToShopOrder> orderQw = new QueryWrapper<>();
        orderQw.lambda().eq(ToShopOrder::getOrderNo, orderNo);
        return this.getOne(orderQw);
    }

}
